package com.hxunicorn.btc.api.task;

import cn.hutool.core.date.DateUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.hxunicorn.btc.core.customer.service.IBizRptService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 墨塵
 * @since 2025/3/6
 */
@Slf4j
@Component
public class BizRptTask {

    @Resource
    private IBizRptService bizRptService;

    @Scheduled(cron = "0 0 9 * * * ")
    public void action() {
        bizRptService.rptDate();
        log.info("定时任务启动=>上报数据["+ DateUtil.now()+"]");
    }
}
